package com.mtnz.njk.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.OrderBy;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Description: 用户充值账单详细
 * @Author: FBL
 * @CreateDate: 2019\8\13 0013 17:36
 * @Version: 1.0
 */
@Data
@Table(name = "balance_order")
public class BalanceOrderEntity {
    @Id
    @Column(name = "balance_order_id")
    private Integer balanceOrderId;
    @Column(name = "order_number")
    private String orderNumber;
    @Column(name = "order_name")
    private String orderName;
    @Column(name = "order_money")
    private Double orderMoney;
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @OrderBy("desc")
    private Date createTime;
    @Column(name = "pay_method")
    private String payMethod;
    @Column(name = "user_id")
    private String userId;
    @Column(name = "user_balance")
    private Double userBalance;
    @Column(name = "order_status")
    private Integer orderStatus;
    @Column(name = "balance_status")
    private Integer balanceStatus;

}
